package org.jeecg.modules.flowable.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.flowable.bpmn.model.SequenceFlow;
import org.jeecg.modules.flowable.service.BpmnService;
import org.springframework.stereotype.Service;

/**
 * Title:  <br>
 * Desc:  <br>
 * Date: 6/8/22 2:08 PM <br>
 * Company: 联通（辽宁）产业互联网有限公司 <br>
 *
 * @author zxd
 * @version 1.0.0
 */
@Slf4j
@Service
public class BpmnServiceImpl implements BpmnService {

    @Override
    public SequenceFlow createSequenceFlow(String argFromId, String argToId) {
        SequenceFlow flow = new SequenceFlow();
        flow.setSourceRef(argFromId);
        flow.setTargetRef(argToId);
        return flow;
    }
}